home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / IBTip / Source / Term.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  537 b   |  26 lines

  1. #import "Tty.h"
  2.  
  3. struct stateStack {
  4.   struct sgttyb state;
  5.   struct stateStack * next;
  6. };
  7.  
  8. @interface Term:Tty
  9. {
  10.   BOOL crlast;
  11.   struct stateStack *stack;
  12. }
  13.  
  14. + new;
  15. - pushState;
  16. - popState;
  17. - (int)getchar;
  18. - (int)getcharWithPrompt:(char *)prompt;
  19. - (int)getline:(char *)string size:(int)max;
  20. - (int)getline:(char *)string size:(int)max WithPrompt:(char *)prompt;
  21. - putString:(char *)string;  // set's terminal sane before writeOut
  22. - putPrompt:(char *)string;  // uses stdout, but resets 'self' in case it's == stdout
  23. - ringBell;
  24.  
  25. @end
  26.